package com.whc.orders.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whc.api.dto.OrderAndGoodsDto;
import com.whc.orders.domain.entity.OrderAndGoods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface OrderAndGoodsMapper extends BaseMapper<OrderAndGoods> {

    //根据订单号查询相关的商品和数量
    List<OrderAndGoodsDto> selectGoodsByOrderNumber(long orderNumber);

    //新增
//    void insertOne(long orderNumber,OrderAndGoodsDto orderAndGoodsDto);

}
